﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YYSite.Common;
using YYSite.Common.Domain;
using YYSite.Common.Logging;
using YYSite.Domain.BaseData.SchoolYears;

namespace YYSite.Application.BaseData.SchoolYears
{
    public class SchoolYearService : ApplicationService,ISchoolYearService
    {
        public SchoolYearService(ILogger logger,ISchoolYearRepository schoolYearRepository):base(logger)
        {
            SchoolYearRepository = schoolYearRepository;
        }

        protected ISchoolYearRepository SchoolYearRepository { get; }


        public DataGridOutput<SchoolYear> GetSchoolYearByPage(GetSchoolYearDataGridInput input)
        {
            return this.SchoolYearRepository.GetSchoolYearByPage(input);
        }
    }
}


